package com.peter.spring.framework.core;

import java.io.ObjectInputStream;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/20 11:34
 * @Description: 单例工厂的顶层设计
 */
public interface XDBeanFactory {

    /**
     * 根据beanName从IOC容器中获得一个实例Bean
     * @param beanName 实例名称
     * @return 实例
     * @throws Exception
     */
    Object getBean(String beanName) throws Exception;

    Object getBean(Class<?> beanClass) throws Exception;
}
